package com.honglang.module.article.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.honglang.common.tools.Pager;
import com.honglang.module.article.entity.BlogArticleComment;

public interface BlogArticleCommentService {
	
	/**
	 * get the blogArticleComments by the rootCommentId
	 * @param rootCommentId
	 * @return
	 */
	public List<BlogArticleComment> getBlogArticleCommentByRootCommentId(Integer rootCommentId);

	/**
	 * get the  blogArticleComments of one page which comment is the rootComment
	 * @param pageSize
	 * @param pageNo
	 * @return
	 */
	public Pager getBlogArticleRootCommentsPager(int pageSize,int pageNo,Integer blogArticleId);


	/**
	 * save the blgoArticleComment
	 * @param blogArticleComment
	 * @return
	 */
	@Transactional(readOnly = false)
	public BlogArticleComment saveBlogArticleComment(BlogArticleComment blogArticleComment);


	/**
	 * get the blogArticleComment by ID;
	 * @param blogArticleCommentId
	 * @return
	 */
	public BlogArticleComment getBlogArticleCommentById(Integer blogArticleCommentId);


	/**
	 * 
	 * @param blogArticleId
	 * @return
	 */
	public List<BlogArticleComment> getBlogArticleCommentByBlogArticleId(Integer blogArticleId);
	
	@Transactional(readOnly = false)
	public void deleteBlogArticleComment(List<BlogArticleComment> comments);
	
	/**
	 * 
	 * @param blogArticleId
	 * @return
	 */
	public List<BlogArticleComment> getBlogArticleCommentByBlogArticleIds(String blogArticleIds);
}
